home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10090 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  32 lines

  1. Path: inforamp.net!ts45-11
  2. From: rmorin@inforamp.net (Randy Charles Morin)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: C code in a C++ app
  5. Date: Wed, 06 Mar 96 03:34:10 GMT
  6. Organization: MiddleWorld SoftWare
  7. Message-ID: <4hj13b$cnq@sam.inforamp.net>
  8. References: <4hbddg$899@sam.inforamp.net> <4hc1pp$1eu@news1.usa.pipeline.com>
  9. NNTP-Posting-Host: ts45-11.tor.inforamp.net
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <4hc1pp$1eu@news1.usa.pipeline.com>,
  13.    grantp@usa.pipeline.com(Pete) wrote:
  14. >Unfortunately, this answer is not to the question asked.  (Aside from 
  15. >possibly being wrong).  The _export keyword is not used in MSVC++4.0, 
  16. >which, if I remember correctly, was specified in the original post.  But 
  17. >it's a moot point since it is used only in DLLs, which is not the subject 
  18. >of the question. 
  19. >The correct answer is to leave the C code with extension .c, omit the 
  20. >inclusion of <stdafx.h>, and change the compiler option switches  
  21. >pertaining to precompiled headers.  The use of extern "C", of course, is 
  22. >appropriate.  
  23.  
  24. If you would have read the post carefully, you'd have known that I was 
  25. suggestion that he use the...
  26.     extern "C"
  27. .. and not the _export command.  Obviously you were to anxious to show off 
  28. your knowledge of C++ and ended up making yourself look dumb.
  29.  
  30. Agrivar
  31.